Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[188043638] add pre commit hook #467

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aless10
Copy link
Contributor

@aless10 aless10 commented Aug 20, 2024

This PR wants to add pre-commit hooks to improve the codebase and checks for errors.
This is intended to be run using python3.11 so that we start moving to a newer version of python.
However, the precommit hooks does not change the files in a way that the py2 version is not working.

How to reproduce:

  1. pip install pre-commit
  2. pre-commit install
  3. pre-commit run --all-files to see that the hook is working

There are some checks that are run during commit:

  • debug statements
  • end of file fixer
  • ruff linter and formatter (with --check flag so that no changes are made in the files)

On push, we run the tests with pytest.

I am going to create another PR to fix all the error that are highlighted when running pre-commit run --all-files.

@aless10 aless10 requested a review from jjdelc August 20, 2024 13:18
@aless10 aless10 changed the title [188043638] add pre commit hok [188043638] add pre commit hook Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant